package com.heima.model.behavior.pojos;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


@Data
@Document("like")
@AllArgsConstructor
@NoArgsConstructor
public class LikeDoc {
    @JsonSerialize(using= ToStringSerializer.class)
    Long id;
    Integer userId;
    @JsonSerialize(using= ToStringSerializer.class)
    Long articleId;
    Date createdTime;
}
